﻿
using Microsoft.EntityFrameworkCore;
using Star.Model.Modelbuilder;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Star.Model
{
    public class StarDbContext : DbContext
    {
        public StarDbContext(DbContextOptions options) : base(options){}
        /// <summary>
        /// 注册表
        /// </summary>
        /// <param name="builder"></param>
        protected override void OnModelCreating(ModelBuilder builder)
        {
            builder.SetClientSecretRecordModel();//创建表
        }
    }
}
